package main

import (
	"bufio"
	"fmt"
	"os"
)

// 读取行文本
var reader = bufio.NewReader(os.Stdin)

func Init() {

	fmt.Println("Hello World!")

	fmt.Print("请输入需要执行的函数代码:")
	bName, _, _ := reader.ReadLine()
	bean := string(bName)

	switch bean {
	case "0000":
		MyTest()
	case "0200":
		MyBase()
	case "0205":
		MyNil()
	case "0210":
		MyBagMathAndRand()
	case "0300":
		MyString()
	case "0310":
		MyBagStringsAndStrconv()
	case "0320":
		MyBagFmt()
	case "0400":
		MyArray()
	case "0500":
		MySlice()
	case "0600":
		MyMap()
	case "0700":
		MyControl()
	case "0800":
		MyPointer()
	case "0900":
		MyFunction()
	case "1000":
		MyBagTime()
	case "1010":
		MyBagJson()
	case "1020":
		MyBagLog()
	case "1021":
		MyBagLogZap()
	case "1040":
		MyBagBig()
	case "1045":
		MyBagFlag()
	case "1050":
		MyBagOsAndIo()
	case "1060":
		MyBagReflect()
	case "1100":
		MyGroutineChannel()
	case "1102":
		MyGroutinePool()
	case "1110":
		MyWaitLock()
	case "1111":
		MyBagAtomic()
	case "1120":
		MySinglePattern()
	case "1200":
		MyInterfaceNullInterface()
	case "1210":
		MyInterfaceObject()
	case "1300":
		MyTag()
	case "1400":
		MyPanicRecover()
	}

}
